const packageJSON = require('./package.json')

let version = packageJSON.deploy.version
let publicBasePath = "/book-to-be-big-fe-deploy/"
if (process.env.NODE_ENV === "development") {
  version = "dev"
  publicBasePath = "/"
}

module.exports = {
  devServer: {
    host: '0.0.0.0',
    port: 8083,
  },
  publicPath: publicBasePath + packageJSON.name + '/' + version + '/',
  outputDir: 'dist/' + packageJSON.name + '/' + version + '/',
}
